import Http from "@/http"

export function pageApi(params:any) {
    return Http.post('user/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.post('user/update', params) : Http.post('user/add', params)
}

export function deleteApi(id) {
    return Http.post('user/delete', {id: id})
}